{% extends 'picasso/base.html' %}

{% block title %}Photo - {{ photo.title }}{% endblock %}

{% block body_id %}picasso_view_photo{% endblock %}

{% block content %}
    <h1>{{ photo.title }}</h1>
    <h2 class="explain">
        {% if photo.summary %}
            {{ photo.summary }}
        {% else %}
            A photo in the {{ photo.album.title }} album
        {% endif %}
    </h2>
    <div class="picasa-photo-view">
        <a href="{{ photo.link }}" title="{{ photo.title }}">
            {% with photo.content.all.0 as content %}
            <img src="{{ content.url }}" alt="{{ photo.title }}" />
            {% endwith %}
            <p class="published">Published on
                {{ photo.published|date:"n/j/y" }}</p>
        </a>
    </div>
    <p><a href="{% url picasso_view_album photo.album.name %}">View the
        {{ photo.album.title }} album...</a></p>
    <p><a href="{% url picasso_index %}">View the latest albums and photos...
        </a></p>
    <p><a href="{% url picasso_list_albums %}">View all albums...
        </a></p>
{% endblock %}